Sometimes we need to show the size of a file on a Web page, or the size or number of other data.This number is often from a large span, if the unit B is a bit, if 1G is up to 1073741824 of the number, this time we need to format according to the
Sometimes we need to show the size of a file on a Web page, or the size or number of other data.
This number is often from a large span, if the unit B is a bit, if 1G is up to 1073741824 of the number, this time we need to format according to the
How PHP Displays file sizes in a format that is suitable for reading
This article mainly introduces PHP using suitable for reading format display file size method, example analysis of PHP implementation of data conversion skills, with a certain
Some time ago, I published an article titled the appearance and Analysis of Large-sector hard disks"To illustrate the emergence of large-sector hard disks in, and some readers have also sent a letter to ask, here, reprinted an article by
When db_block_size is set to different sizes in the local tablespace, the reserved data file header space is as follows :--?? Db_block_size2KB. the file header contains 32 data blocks, that is, 64KB. Db_block_size4KB. the file header contains 16
Use FAT32 File System
When saving files, the computer usesFile SystemControls how files or folders are saved on the hard disk. Older versions of MS-DOS and Windows use the unique fat16 file system. By default, fat16 is used for Windows 98, but FAT32
For example, check the size of the home directory:
Du-s/home
You can also:
Du-sh/home
/usr/local/apache/bin/htcacheclean-v-p/cacheroot-l500m
Statistics:
Size Limit 500.0M
Total size is 91.8M, total size now 91.8M
Total entries is 3754, total
Iii. Memory Management
Like other Windows operating systems, Windows CE. Net also supports 32-bit virtual memory, on-demand memory allocation, and memory ing files. However, it is significantly different from other Windows operating systems. After
PHP and C # format the file size code respectively. PHP: Copy the code as follows: functionformat ($ size) {$ sizetextarray (B, KB, MB, GB, TB, PB, EB, ZB, YB ); returnround ($ sizepow (1024, ($ ifloor (l PHP version:
The code is as follows:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.